package com.xul.yygh.hosp.client;

import model.com.xul.yygh.vo.hosp.ScheduleOrderVo;
import model.com.xul.yygh.vo.order.SignInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author xul
 * @create 2021-07-19 20:15
 */
@FeignClient(value = "service-hosp")
@Repository
public interface HospitalFeignClient {

    /**
     * 根据排班id获取到预约下单数据
     *
     * @param scheduleId
     * @return
     */
    @GetMapping("api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    public ScheduleOrderVo getScheduleQueryVo(@PathVariable("scheduleId") String scheduleId);

    /**
     * 获取医院签名信息
     *
     * @param hoscode
     * @return
     */
    @GetMapping("api/hosp/hospital/inner/getSignInfoVo/{hoscode}")
    public SignInfoVo getSignInfoVo(@PathVariable("hoscode") String hoscode);
}
